package com.joolun.mall.domain;

import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 轮播管理对象 swiper
 * 
 * @author www.joolun.com
 * @date 2021-10-18
 */
public class Swiper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 轮播ID */
    private Long id;

    /** 轮播标题 */
    @Excel(name = "轮播标题")
    private String title;

    /** 轮播图 */
    @Excel(name = "轮播图")
    private String img;

    /** 链接类型 */
    @Excel(name = "链接类型")
    private String type;

    /** 链接id */
    @Excel(name = "链接id")
    private String targetId;

    /** 删除标志 */
    private String delFlag;

    /** 轮播图位置 */
    @Excel(name = "轮播图位置")
    private String location;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTargetId(String targetId) 
    {
        this.targetId = targetId;
    }

    public String getTargetId() 
    {
        return targetId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("img", getImg())
            .append("type", getType())
            .append("targetId", getTargetId())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("location", getLocation())
            .append("sort", getSort())
            .toString();
    }
}
